package com.htpay.model.common;

/**
 * 常量
 */
public class Constant {

    /**
     * 前端request head: token key
     */
    public static String X_ACCESS_TOKEN = "X-Access-Token";

    /**
     * redis-OK
     */
    public final static String OK = "OK";

    /**
     * redis过期时间，以秒为单位，一分钟
     */
    public final static int EXRP_MINUTE = 60;

    /**
     * redis过期时间，以秒为单位，一小时
     */
    public final static int EXRP_HOUR = 60 * 60;

    /**
     * redis过期时间，以秒为单位，一天
     */
    public final static int EXRP_DAY = 60 * 60 * 24;

    /**
     * redis-key-前缀-shiro:cache:
     */
    public final static String PREFIX_SHIRO_CACHE = "shiro:cache:";

    /**
     * redis-key-前缀-shiro:access_token:
     */
    public final static String PREFIX_SHIRO_ACCESS_TOKEN = "shiro:access_token:";

    /**
     * redis-key-前缀-shiro:refresh_token:
     */
    public final static String PREFIX_SHIRO_REFRESH_TOKEN = "shiro:refresh_token:";

    /**
     * JWT-account:
     */
    public final static String ACCOUNT = "account";

    /**
     * JWT-currentTimeMillis:
     */
    public final static String CURRENT_TIME_MILLIS = "currentTimeMillis";

    /**
     * PASSWORD_MAX_LEN
     */
    public static final Integer PASSWORD_MAX_LEN = 8;

    /**
     * 用户缓存: 商户信息key 前缀
     */
    public final static String SYS_USER_INFO = "sys:cache:merchantId:";

    /**
     * 用户缓存：商户key信息
     */
    public final static String SYS_USER_KEY = "sys:cache:merchantKey:";

    /**
     * 业务异常错误码
     */
    public final static Integer BUSI_ERROR_COD = -1;

    /**
     * 业务成功码
     */
    public final static Integer BUSI_SUCC_CODE = 0;

    /**
     * 验证码基本的字符串
     */
    public static final String BASE_CHECK_CODES = "qwertyuiplkjhgfdsazxcvbnmQWERTYUPLKJHGFDSAZXCVBNM0123456789";

    /**
     * 创瑞短信平台
     */
    public static final String SMS_PLAT_FORM_CHUANG_RUI = "chuangRui";

}
